package com.qlm.tongji.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.qlm.tongji.entity.Summary;
import com.qlm.interceptor.AdminOperate2Interceptor;
import com.qlm.interceptor.AuthInterceptor;
import com.qlm.tongji.service.ISummaryService;
import com.qlm.tongji.service.impl.SummaryServiceImpl;

@Before(AuthInterceptor.class)
public class SummaryController extends Controller{
	protected final static Logger logger = LoggerFactory.getLogger(SummaryController.class);
	
	private ISummaryService summaryService = enhance(SummaryServiceImpl.class);

	@Before(AdminOperate2Interceptor.class)
	public void mainPage(){
		logger.info("method:mainPage");
		render("/page/index.jsp");
		}
	  
}
